<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>学生成绩管理系统 - 注册</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <!-- 背景装饰元素 -->
    <div class="decoration decoration-yellow"></div>
    <div class="decoration decoration-red"></div>
    <div class="decoration decoration-green"></div>

    <div class="container">
        <h1>注册</h1>
        <form id="registerForm">
            <div class="form-group">
                <label for="role">身份</label>
                    <select id="role" name="role" required>
                        <option value="">请选择身份</option>                                                                
                        <option value="student">学生</option>
                        <option value="teacher">老师</option>
                        <option value="admin">管理员</option>
                    </select>
            </div>
            <div class="form-group">
                <label for="regPhone">手机号</label>
                <input type="tel" id="regPhone" name="phone" required placeholder="请输入手机号">
            </div>
            <div class="form-group">
                <label for="regPassword">密码</label>
                <input type="password" id="regPassword" name="password" required placeholder="请输入密码">
            </div>
            <div class="form-group">
                <label for="confirmPassword">确认密码</label>
                <input type="password" id="confirmPassword" name="confirmPassword" required placeholder="请再次输入密码">
            </div>
            <button type="submit" class="btn">注册</button>
            <div id="registerStatus" class="status-message"></div>
        </form>
        <div class="link">
            已有账号？<a href="index.html">立即登录</a>
        </div>
    </div>

    <script src="index.js"></script>
</body>
</html>